package com.wwe.kotlinstudy.example19

fun test() {
    var name = "test2"
    class A { // 隐式标签 @A
        var name = "A"
        inner class B { // 隐式标签 @B
            var name = "B"
            fun say() {
                val a = this@A.name // 类A的name
                println("this@A $a")

                val b = this@B.name // 类B的name
                println("this@B $b")

                val c = this.name
                println("this $c")

                val funLit2 = { s: String ->
                    val d1 = this.name;
                    println("funLit2 this $d1")
                }
            }
        }
    }
}

//val a = A().B();
//a.say();
